package com.bookmall.member.domain.vo;

import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 登录时采集的信息
 * @Author 胡菜鸡
 * @Create 2022-04-03-16:39
 */
@Data
@ToString
public class LoginUserVo {
    @NotBlank(message = "账号必须填写")
    @Length(min = 6, max = 30, message = "账号必须为6-30位字符或数字")
    private String username;

    @NotBlank(message = "密码必须填写")
    @Length(min = 6, max = 18, message = "密码必须为6-18位字符或数字")
    private String password;
}
